#ifndef __STU_H__
#define __STU_H__

#define CLS_NUM     20
#define NAME_LEN    30

typedef struct {
    char name[NAME_LEN];
    char sex;
    int age;
    float score;
} cls_mate;

typedef struct {
cls_mate stu[CLS_NUM];
    int num;
    int is_load;
} cls;


#define ADD     1
#define SEARCH  2
#define LIST    3
#define QUIT    -1

int load(cls *cls_all);
int add(cls *cls_all);
void list(cls *cls_all);
int search(cls *cls_all);

#endif
